projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
129beb4
)
gtk/gtkwin32theme.c: Remove C99ism
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Tue, 20 Mar 2012 06:10:14 +0000
(14:10 +0800)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Wed, 21 Mar 2012 15:28:43 +0000
(23:28 +0800)
gtk/gtkwin32theme.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwin32theme.c
b/gtk/gtkwin32theme.c
index 90a6a669faac7c83e25cb5235ec560f8115eab2d..6f4df72356421fd961940d6de99546fa8edc5d67 100644
(file)
--- a/
gtk/gtkwin32theme.c
+++ b/
gtk/gtkwin32theme.c
@@
-214,6
+214,7
@@
_gtk_win32_theme_part_create_surface (HTHEME theme,
cairo_t *cr;
int x_offs;
int y_offs;
+ int i, j;
#ifdef G_OS_WIN32
gboolean has_alpha;
HDC hdc;
@@
-274,9
+275,9
@@
_gtk_win32_theme_part_create_surface (HTHEME theme,
guint32 *data = (guint32 *)cairo_image_surface_get_data (img);
GdiFlush ();
- for (i
nt i
= 0; i < width; i++)
+ for (i = 0; i < width; i++)
{
- for (
int
j = 0; j < height; j++)
+ for (j = 0; j < height; j++)
{
if (data[i+j*width] != 0)
data[i+j*width] |= 0xff000000;